<!--
 * @Description: 异常日志详情
 * @Autor: Zhu_liangyu
 * @Date: 2020-07-13 16:57:52
--> 
<template>
  <a-card :bordered="false">
    <basic-form
      ref="exceptionLogForm"
      v-model="exceptionLogForm"
      :rules="exceptionLogRules"
      primary-key="exceptionLogId"
      :query-api="exceptionLog_queryByIdApi"
      :insert-api="exceptionLog_insertApi"
      :update-api="exceptionLog_updateApi"
    >
      <a-form-model-item label="登录名称" prop="loginUserName" ref="loginUserName" :hasFeedback="true">
        <a-input v-model="exceptionLogForm.loginUserName" placeholder="请输入登录名称"></a-input>
      </a-form-model-item>
      <a-form-model-item label="登录ip" prop="loginIp" ref="loginIp" :hasFeedback="true">
        <a-input v-model="exceptionLogForm.loginIp" placeholder="请输入登录ip"></a-input>
      </a-form-model-item>
      <a-form-model-item label="登录地址" prop="loginArea" ref="loginArea" :hasFeedback="true">
        <a-input v-model="exceptionLogForm.loginArea" placeholder="请输入登录地址"></a-input>
      </a-form-model-item>
      <a-form-model-item label="请求地址" prop="requestUrl" ref="requestUrl" :hasFeedback="true">
        <a-input v-model="exceptionLogForm.requestUrl" placeholder="请输入请求地址"></a-input>
      </a-form-model-item>
      <a-form-model-item label="请求方法" prop="requestMethod" ref="requestMethod" :hasFeedback="true">
        <a-input v-model="exceptionLogForm.requestMethod" placeholder="请输入请求方法"></a-input>
      </a-form-model-item>
      <a-form-model-item label="请求数据" prop="requestData" ref="requestData" :hasFeedback="true">
        <a-input v-model="exceptionLogForm.requestData" placeholder="请输入请求数据"></a-input>
      </a-form-model-item>
      <a-form-model-item
        label="异常信息"
        prop="exceptionMessage"
        ref="exceptionMessage"
        :hasFeedback="true"
      >
        <a-input v-model="exceptionLogForm.exceptionMessage" placeholder="请输入异常信息"></a-input>
      </a-form-model-item>
      <a-form-model-item label="异常数据" prop="exceptionData" ref="exceptionData" :hasFeedback="true">
        <a-input v-model="exceptionLogForm.exceptionData" placeholder="请输入异常数据"></a-input>
      </a-form-model-item>
      <a-form-model-item label="浏览器" prop="browser" ref="browser" :hasFeedback="true">
        <a-input v-model="exceptionLogForm.browser" placeholder="请输入浏览器"></a-input>
      </a-form-model-item>
      <a-form-model-item label="操作系统" prop="os" ref="os" :hasFeedback="true">
        <a-input v-model="exceptionLogForm.os" placeholder="请输入操作系统"></a-input>
      </a-form-model-item>
      <a-form-model-item label="登录日期" prop="createTime" ref="createTime" :hasFeedback="true">
        <a-date-picker
          v-model="exceptionLogForm.createTime"
          show-time
          valueFormat="YYYY-MM-DD"
          placeholder="请选择登录日期"
          style="width:100%"
        ></a-date-picker>
      </a-form-model-item>
    </basic-form>
  </a-card>
</template>
<script>
import {
  exceptionLog_queryByIdApi,
  exceptionLog_insertApi,
  exceptionLog_updateApi
} from "@/api/org/exceptionLog";
import { exceptionLogRules } from "@/profile/org/exceptionLog";

export default {
  data() {
    return {
      exceptionLogRules,
      exceptionLog_queryByIdApi,
      exceptionLog_insertApi,
      exceptionLog_updateApi,
      exceptionLogForm: {
        exceptionLogId: this.$route.params.id
      }
    };
  }
};
</script>